import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/supplier/finance/settlementproject/` + url, ...arg)

/**
 * 结算项目Api接口管理器
 *
 * @author Mr.wu
 * @date  2025/04/10 09:59
 **/
export default {
	// 获取结算项目分页
	supplierSettlementProjectPage(data) {
		return request('page', data, 'get')
	},
	// 提交结算项目表单 edit为true时为编辑，默认为新增
	supplierSettlementProjectSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除结算项目
	supplierSettlementProjectDelete(data) {
		return request('delete', data)
	},
	// 获取结算项目详情
	supplierSettlementProjectDetail(data) {
		return request('detail', data, 'get')
	}
}
